<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<div th:if="${param1 == 5}">
    th:if属性对应的div，条件为真时出现
</div>
<div th:unless="${param1} > ${param2}">
    th:unless属性对应的div，条件为假时出现
</div>

<div th:switch="${param1} - ${param2}">
    <div th:case="1">值是1</div>
    <div th:case="2">值是2</div>
    <div th:case="*">其他值</div>
</div>
</div>
</body>
</html>